<!doctype html>
<html>
<head>
    <meta charset="utf-8">
<style>
    #CountMsg {
        text-align: center;
        margin: 200px auto 200px;
        font-size: 40px;

    }
    div img {
        width: 200px;
        height: 200px;
        background-color: red;
        margin :0 auto;
        display: block;
    }
</style>
</head>

<body>

<DIV id="CountMsg" class="HotDate">
    请扫描下方二维码进行支付,
    <!--<span id="t_m">1分</span>-->
    <span id="t_s">3秒</span>后未支付的订单将会被取消.
    <img src="" alt="" >
</DIV>
<script type="text/javascript">
    let time = 2000;
     function getRTime() {
        var m = Math.floor(time/1000/60%60);
        var s = Math.floor(time/1000%60);
        time-=1000;
        // document.getElementById("t_m").innerHTML = m + "分";
        document.getElementById("t_s").innerHTML = s + "秒";
         if (time <0) {
             clearInterval(timer)
             window.location.href="http://www.baidu.com "
         }
    }
   timer= window.setInterval(getRTime,1000)

</script>
</body>
</html>